#include <iostream>
#include "pattern.h"
#include "matcher.h"
#include <string>
using namespace std;
int main(){
    //Pattern* p = new Pattern("(<)?(\\w+@\\w+(?:\\.\\w+)+)(?(1)>)",Pattern::MULTILINE);
    //string s = "<user@host.com";

    Pattern* p = new Pattern("[a-zB-Z&&[DC]]");
    string s = "D";
    Matcher* m = p->match(s);
    if(m){
        cout<<"matched"<<endl;
        cout<<m->group(0)<<endl;
        //cout<<m->group(1)<<endl;
    } else {
        cout<<"not matched"<<endl;
    }
    //Pattern* p = new Pattern("c");
}
